﻿using System;

namespace ViewStatePropertyTest
{
    [AttributeUsage(AttributeTargets.Property)]
    public class ViewStateProperty : Attribute
    {
        public string Key { get; protected set; }

        public ViewStateProperty()
        {
            Key = string.Empty;
        }

        public ViewStateProperty(string key)
        {
            if (null == key)
                throw new ArgumentNullException("key");

            Key = key;
        }
    }
}
